#ifndef _FIFO_H_
#define _FIFO_H_

#include <stdlib.h>

#define FIFO_EMPTY 1
#define FIFO_FULL 2
#define FIFO_NO_ERROR 0


extern int fifo_errno;


struct fifo;

struct fifo * 	fifo_empty () ;
int 			fifo_is_empty ( struct fifo * f );
int			 	fifo_top (struct fifo * f);
int 			fifo_push ( struct fifo * f, unsigned char e);
int 			fifo_pop ( struct fifo * f );
int 			fifo_free (struct fifo * f);

#endif
